﻿(function ($) {
    var ccurrent;


    jQuery.fn.getcurrent = function () {
        return ccurrent

    }
    jQuery.fn.setcurrent = function (attrid) {
        if (attrid) {
            ccurrent = attrid
        }
        return this;
    }
    var isonwriting


    jQuery.fn.getstate = function () {
        return isonwriting

    }
    jQuery.fn.setonwrite = function () {
        isonwriting = "on"
    }
    jQuery.fn.setoffwrite = function () {
        isonwriting = "off"
    }

    var start1, end1, $arrow1

    jQuery.fn.getmoveingline = function () {
        return { start: start1, end: end1, $arrow: $arrow1 };
    }
    jQuery.fn.setmoveingline = function (start, end, $arrow) {
        start1 = start;
        end1 = end;
        $arrow1 = $arrow;
    }
})(jQuery);

